﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

using MP.Core.Library;
using MP.Core.Config;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Page.Title = "OBS";

        if (ConfigurationSettings.AppSettings["ServerStastus"] == "updating")
            Response.Redirect("/Updating.htm");
        //if (string.IsNullOrEmpty(Util.CurrentUserName) && !Request.RawUrl.Contains(EnumAuthentication.PageRedirect) && !Request.RawUrl.Contains(EnumAuthentication.PageAdminRedirect))
        //{
        //    Response.Redirect(UrlBuilder.RootUrl + "/Member/Login.aspx" + "?returnUrl=" + Server.UrlEncode(Request.RawUrl));
        //}
    }

    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e); 
        
    }
}
